package com.xinlu.common.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import com.xinlu.common.log.Logger;

public class CommonInterceptor implements Interceptor{

	protected static Logger logger = Logger.getLogger(CommonInterceptor.class);
	
	public void destroy() {
		logger.info(this.getClass()+" destroy successfully");
	}

	public void init() {
		logger.info(this.getClass()+" init successfully");
	}

	public String intercept(ActionInvocation invocation) throws Exception {
		return invocation.invoke();
	}
	
	
	
}
